package com.liuzh.websocket.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class AppController {
	@RequestMapping(value = {"","/","/index","/index.htm","/index.html"})
	public String index(Model model) {
		model.addAttribute("msg", "欢迎使用websocket...");
		return "index";
	}
}
